<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>演示Vue的条件渲染</title>
    <script src="./js/vue@3.5.12.global.js"></script>
    <style>
        .style1{
            width: 200px;
            height: 200px;
            background-color: red;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="style1" v-if="login"></div>
        <div class="style1" v-show="login"></div>
    </div>
</body>
<script>
    const app = Vue.createApp({
        data(){
            return{
                login: false,
            }
        }
    })
    //挂载
    app.mount('#app');
</script>
</html>